From: Marco Trevisan (TreviƱo) Date: Mon, 11 Mar 2019 21:30:39 +0000 (-0400) Subject: magnifier: Use actor scaling filters on content texture node X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~871^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=727195c76743945c3b48e722e6a31922f0f8e436;p=gnome-shell.git magnifier: Use actor scaling filters on content texture node Reuse the same filter values of the attached actor, instead of hardcoding the defaults. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/454 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index b01e8b6b2..4717bb82c 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -66,10 +66,9 @@ var MouseSpriteContent = GObject.registerClass({ return; let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE); + let [minFilter, magFilter] = actor.get_content_scaling_filters(); let textureNode = new Clutter.TextureNode(this._texture, - color, - Clutter.ScalingFilter.NEAREST, - Clutter.ScalingFilter.NEAREST); + color, minFilter, magFilter); textureNode.set_name('MouseSpriteContent'); node.add_child(textureNode);